import type { TurboModule } from "react-native/Libraries/TurboModule/RCTExport";
import { TurboModuleRegistry } from "react-native";

export interface Spec extends TurboModule {
  open(options:{ date: number, minDate: number, maxDate: number, mode: 'calendar' |'spinner' | 'default'}): Promise<{
    action: 'dateSetAction' | 'dismissedAction', 
    year?: number, 
    month?: number, 
    day?: number,
  }>;
}

export default TurboModuleRegistry.get<Spec>("RTNDateTimePickerAndroid") as Spec | null;